package com.zhangxu.basemvp.contractmodel;

import com.zhangxu.basemvp.api.LoginApi;
import com.zhangxu.basemvp.contract.LoginContract;
import com.zhangxu.basemvp.presenter.LoginPresenterImpl;
import com.zhangxu.basemvp.utils.RetrofitManager;

import dagger.Module;
import dagger.Provides;

/**
 * Time:2019/4/18
 * Author:zhangxu
 */
@Module
public class LoginContractModel {
    LoginContract.View view;

    public LoginContractModel(LoginContract.View view) {
        this.view = view;
    }

    @Provides
    LoginPresenterImpl getLoginPresenter() {
        return new LoginPresenterImpl(view);
    }

}
